package edu.ccut.saturn.studio.saturndata.model;

import java.util.List;
import java.util.Map;

import edu.ccut.saturn.component.IValidate;
import edu.ccut.saturn.component.IValidateInfo;
import edu.ccut.saturn.component.impl.SaturnValidateInfo;
import edu.ccut.saturn.studio.logic.model.saturn.SaturnValidate;

/**
 * @author 谷钰
 * 
 */
public class ValidateVO extends SaturnValidateInfo  {

	public ValidateVO(IValidateInfo saturnValidateInfo) {
		super(saturnValidateInfo);
		
		super.setJSMethodName(saturnValidateInfo.getJSMethodName());
		super.setCustemJSMethodInfo(saturnValidateInfo.getCustemJSMethodInfo());
	}

	public ValidateVO(String key, String name, String description,
			Map<String, String> errorInfos, List<String> args, String type,
			List<String> eventInfos, String validateType) {
		
		super(key, name, description, errorInfos, args, type, eventInfos, validateType);
	}

	public ValidateVO(String key, String name, String description,
			Map<String, String> errorInfos,
			Class<? extends IValidate> classType, List<String> args,
			String type, List<String> eventInfos, String validateType) {
		
		super(key, name, description, errorInfos, classType, args, type, eventInfos,
				validateType);
	}
	
	
	public ValidateVO() {
		super(null, null, null, null, null, null, null, null);
	}
	
}
